<?php
/**
 * Created by PhpStorm.
 * User: Aliaksei Lazerka
 * Date: 10/3/14
 * Time: 11:15 PM
 */
include_once("../NymphFramework.php");

$loggerFactory = new \log\LoggerFactory(array('../conf/xml/test.xml'));

$logger = $loggerFactory->getLoggerByName('browserLogger');

$connectionProperties = new \base\ConnectionProperties();
$connectionProperties->setDbURL('localhost');
$connectionProperties->setDbName('fly');
$connectionProperties->setUsername('root');
$connectionProperties->setPassword('alex_lazer');

$transaction = new \mysql\MySQLTransaction();

$dbActions = new \mysql\MySQLDBActions();

$connection = new \base\Connection($transaction, $connectionProperties, $dbActions, $logger);

$callback = new \mysql\LastIdInnerCallback();

$sqlQuery = new \sql\SimpleSQLQuery("INSERT INTO deleteusers(userid, date) VALUES ('30',CURRENT_DATE())");

echo $connection->executeQueryWithCallback($sqlQuery, $callback);
